<?php

class Imageupload extends Zend_Form
{

    public function init()
    {
        $imagefield = new Zend_Form_Element_File('imagefield');
        $imagefield->setLabel('請選擇檔案');
        //->addValidator('MimeType', true, array('image/gif','image/jpeg','image/png','image/jpg'));
        $submit = new Zend_Form_Element_Submit('upload');
        $this->addElements(array($imagefield,$submit))
        ->setOptions(array('id'=>'imageform'))
        ->setAction('http://localhost/moxprj/public/index/uploadajax');
    }


}

